<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateOriginurlsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('originurls', function (Blueprint $table) {
            $table->increments('id');
            $table->string('url');
            $table->integer('status')->default(0);
            $table->integer('rate')->default(3600)->commit('采集频率，多久采集一次，单位为秒');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('originurls');
    }
}
